結果 : write list of lines to text file python