when the key is a tuple in dictionary in python,"d = {(a.lower(), b): v for (a, b), v in list(d.items())}"