append to a file,"with open('foo', 'a') as f: