def transform(multilevelDict):
    return {(str(key) + 'abc'): (transform(value) if isinstance(value, dict
        ) else value) for key, value in list(multilevelDict.items())}
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?