Clean python file