Isolating pysal integration into one stop function.
Moving duplicative code into function.