'open(host=None, port=None)
Setup a stream connection via \'self.command\'.
This connection will be used by the routines:
read, send, shutdown, socket.'

def open(self, host=None, port=None):

    from subprocess import Popen, PIPE
    if __debug__:
        self._log(0, ('opening    stream    from    command    "%s"' % self.command))
    self._P = Popen(self.command, shell=True, stdin=PIPE, stdout=PIPE, close_fds=True)
    (self.writefile, self.readfile) = (self._P.stdin, self._P.stdout)
    self.read_fd = self.readfile.fileno()
