code: def split_hostname_from_port(cls, hostname):
          
          bits = hostname.split(":", 2)
          p = None
          d = bits[0]
          if len(bits) == 2:
              p = int(bits[1])
  
          return d, p
docs: given a hostname:port return a tuple (hostname, port)