changed to `from scipy import spatial