changes to python script