for key, value in list(new.items()):
    if isinstance(value, dict):
        new[key] = transform(value)
return new
print(transform({(1): 2, 'bam': 4, (33): {(3): 4, (5): 7}}))
In Python, I have a dictionary. How do I change the keys of this dictionary?