How do I modify a text file in Python?,f.write('new line\n')