Use print, not write. The write function outputs the raw binary representation 
to the file, while print outputs text. 

Reply via email to