update the python script