結果 : write output to log file python