(str)
return inet_ntop(socket.AF_INET6, inet_pton(socket.AF_INET6, str))
Normalizes IPv6 addresses provided in printable format, returning the 
    same address in printable format. (2001:0db8:0:0::1 -> 2001:db8::1)
Normalizes IPv6 addresses provided in printable format, returning the 
    same address in printable format. (2001:0db8:0:0::1 -> 2001:db8::1)
Normalizes IPv6 addresses provided in printable format returning the same address in printable format . ( 2001 : 0db8 : 0 : 0 :: 1 - > 2001 : db8 :: 1 )
def in6_ptop(str): 
    """
    Normalizes IPv6 addresses provided in printable format, returning the 
    same address in printable format. (2001:0db8:0:0::1 -> 2001:db8::1)
    """
    return inet_ntop(socket.AF_INET6, inet_pton(socket.AF_INET6, str))
def in6_ptop ( str ) : return inet_ntop ( socket . AF_INET6 , inet_pton ( socket . AF_INET6 , str ) )