Group points by Cluster_two list upgrade

I am not good at English. Sorry for the google translator

What I want is python upgrade

This is a python with only one list, and what I want is to cluster points with two lists.

I want list 1 to be the standard and calculated with list 2

thank you so much for reading