bug fix in iter_lines: read entire stdout/stderr streams
Replace non-encodable characters when encoding to latin-1
paramiko_machine - popen accepts cwd