結果 : python write message to file