import collections
d1 = {'a': 'AA', 'c': 'CC', 'd': 'EE'}
d2 = {'b': 'BB', 'c': 'DD', 'f': 'GG'}
cm = collections.ChainMap(d1, d2)
print('Keys = {}'.format(list(cm.keys())))
print('Values = {}'.format(list(cm.values())))
'''
run:
Keys = ['d', 'a', 'f', 'c', 'b']
Values = ['EE', 'AA', 'GG', 'CC', 'BB']
'''