Please move these "inline" comments above:

    # calls self._set_hostport() …
    # …
    self._tunnel()