general: defaultdict fix
Signed-off-by: Eirini Psallida <eirini.psallida@cern.ch> Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>