place stdout/stderr on popen when using iter_lines for convenience