Python 3.x Update
From Eli Bendersky answer:
Python 3 removed dict.iteritems use dict.items instead.
See Python wiki: https://wiki.python.org/moin/Python3.0
from collections import defaultdict
dd = defaultdict(list)
for d in (d1, d2):
for key, value in d.items():
dd[key].append(value)