changes in the python files to try to improve the times