結果 : python write terminal to file