結果 : write print statement to file python