結果 : write a variable to a text file python