asides: 
I saw recently that scikit-learn has other spatial correlation functions, https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/gaussian_process/correlation_models.py 

for spatial applications there will be overlap and connection to pysal