Fixing LEGB rule - I added a reverse in the merge_dict function but forgot to change the order of args