use json to communicate between php and python