updating .py file