Save the json to a file and return a json after executing the python script.