結果 : write line to file python