code: def get_uri(self):
          
          url = Url()
          url.protocol = self.get_protocol()
          url.hostname = self.get_address()
          url.port = self.get_tcp_port()
          url.vars = dict((k, to_list(v))
                          for (k, v) in list(self.get_all().items())
                          if isinstance(v, str) or isinstance(v, list))
  
          if self.account:
              url.username = self.account.get_name()
              url.password1 = self.account.get_password()
              url.password2 = self.account.authorization_password
  
          return str(url)
docs: Returns a URI formatted representation of the host, including all
          of it's attributes except for the name. Uses the
          address, not the name of the host to build the URI.
  
          :rtype:  str
          :return: A URI.