Use update function to merge the dictionaries. Check the following example.
>>> a1={'a':1,'b':2,'c':3}>>> a2={'d':4,'e':5,'f':6}>>> a1.update(a2)>>> a1{'a': 1, 'c': 3, 'b': 2, 'e': 5, 'd': 4, 'f': 6}
>>> a1={'a':1,'b':2,'c':3}
>>> a2={'d':4,'e':5,'f':6}
>>> a1.update(a2)
>>> a1
{'a': 1, 'c': 3, 'b': 2, 'e': 5, 'd': 4, 'f': 6}