using a python dictionary as a key (non-nested),tuple(sorted(a.items()))