how do i modify a text file in python?,f.write('new line\n')