Merging Python Dictionaries Efficiently