human
Python: Write a list of tuples to a file
assistant
Here is some code to create a file 'filename' with each tuple in the list `mylist` written to a line

open('filename', 'w').write('\n'.join('%s %s' % x for x in mylist))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.