BUG: sparsetools: fix compilation on OSX

Python.h apparently needs to be included before C++ headers for some
reason.