結果 : python how to write log file