def ip_to_uuid(ip):
 return UUID(bytes=md5(ip.encode('utf-8')).digest())

def ip_to_uuid ( ip ) : return UUID ( bytes = md5 ( ip . encode ( 'utf-8' ) ) . digest ( ) )
deterministically convert ip to uuid .