script changes to python