結果 : write a log file python