結果 : how to write log file in python