def expand_ipv6(address):
 packed_ip = socket.inet_pton(socket.AF_INET6, address)
 return socket.inet_ntop(socket.AF_INET6, packed_ip)

def expand_ipv6 ( address ) : packed_ip = socket . inet_pton ( socket . AF_INET6 , address ) return socket . inet_ntop ( socket . AF_INET6 , packed_ip )
expand ipv6 address .