def in6_isaddr6to4(x):
 x = inet_pton(socket.AF_INET6, x)
 return (x[:2] == ' \x02')

def in6_isaddr6to4 ( x ) : x = inet_pton ( socket . AF_INET6 , x ) return ( x [ : 2 ] == ' \x02' )
return true if provided address is a 6to4 address .