def combine_dicts(a, b, op=operator.add):
    return dict(list(a.items()) + list(b.items()) + [(k, op(a[k], b[k])) for k in set(b
        ) & set(a)])
Is there any pythonic way to combine two dicts (adding values for keys that appear in both)?