結果 : write a string to a file python