結果 : write variable content to file python