def remove_dot_key(obj):
    for key in list(obj.keys()):
        new_key = key.replace('.', '')
if new_key != key:
    obj[new_key] = obj[key]
del obj[key]
return obj
How can I edit/rename keys during json.load in python?