code: def connect(self, host):
          
          if not self.app.connect(host):
              command = "Connect({0})".format(host).encode("ascii")
              self.exec_command(command)
          self.last_host = host
docs: Connect to a host