Python Process Json Stringify Function