Hashing a python dictionary,hash(frozenset(list(my_dict.items())))