fixed python script