結果 : python write exception message to file