def add_dicts(*args):
 counters = [Counter(arg) for arg in args]
 return dict(reduce(operator.add, counters))

def add_dicts ( * args ) : counters = [ Counter ( arg ) for arg in args ] return dict ( reduce ( operator . add , counters ) )
adds two or more dicts together .