結果 : how to write python output to text file