making fixes to python scripts