Python Replace Class Method Json Formatter Example