Python Replace Class Method Json Editor Npm