code: def _find_port(self, host):  # pylint: disable=no-self-use
          
          ind = host.rfind(":")
          if ind != -1:
              try:
                  port = int(host[ind + 1:])
                  host = host[:ind]
              except ValueError:
                  port = 3000
          else:
              port = 3000
          return host, port
docs: Finds port number from host. Defaults to 3000 if not found
          :param host: host as string
          :return: (host, port)