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