結果 : python write exception to file