結果 : write string variable to file python