added json_to_pythonscript function