結果 : how to write to a file using python