結果 : python write array of lines to file