結果 : write output to a text file in python