Python Replace Class Method Json Editor Formatter