結果 : python log terminal output to file