python script modified