結果 : python write terminal output to file