結果 : write python exception to file