Changes to python output file