refactored iter_lines as a method of Popen (iter_lines/__iter__)