1map(str, mylist)
2#python 3+ map( ) doesn't output a list, which is why:
3list(map(str, mylist)
4#change 'str' to 'float' or 'int' for other outcomes
1lines2 = " ".join(lines) # Converts the list to a string.
2 # This should work for writing to a file
3file.write(lines2)