結果 : write text to a file python