@staticmethod
def _get_host_port(host):
    if (']' in host):
        host_port = host.split(']:')
        if (len(host_port) == 2):
            return ((host_port[0] + ']'), host_port[1])
        return (host_port[0], None)
    else:
        host_port = host.split(':')
        if (len(host_port) == 2):
            return (host_port[0], host_port[1])
        return (host_port[0], None)
@staticmethod
def _get_host_port(host):
    if (']' in host):
        host_port = host.split(']:')
        if (len(host_port) == 2):
            return ((host_port[0] + ']'), host_port[1])
        return (host_port[0], None)
    else:
        host_port = host.split(':')
        if (len(host_port) == 2):
            return (host_port[0], host_port[1])
        return (host_port[0], None)