結果 : write text string to file python