'This property attempts to return an active SSH transport'

@property
def transport(self):

    if ((not self._transport) or (not self._transport.is_active())):
        self.connect(self._host, self._username, self._password, port=self._port, timeout=self._timeout, compress=self._compress)
    return self._transport
