how to replace character from keys in a nested json in python