update python script