Python: Write a list of tuples to a file,fp.write('\n'.join('%s %s' % x for x in mylist))