write line to file,"with open('somefile.txt', 'a') as the_file: