結果 : write a variable value to a file in python