<human>:  When the key is a tuple in dictionary in Python
<bot>: Here is some code to make all keys lowercase in dictionary `d`

d = {(a.lower(), b): v for (a, b), v in list(d.items())}

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.