Relevant files are [here](https://github.com/pysal/pysal/pull/1180/files#diff-a2ccb52a3773d3b1e1514b9512417bb4)