Return True if is a valid IP v6

def check_ipv6(ip_str):
    """
    Return True if is a valid IP v6
    """

    try:
        socket.inet_pton(socket.AF_INET6, ip_str)
    except socket.error:
        return False
    return True