SciPy

scipy.spatial.cKDTree.mins

cKDTree.mins