結果 : write variable to file python