updating python script