結果 : append lines to file python