Write to a file

http://www.tutorialspoint.com/python/python_files_io.htm