Update python script to php json answer