結果 : python redirect function output to file