結果 : write log to file python