BUG: sparse/sparsetools: Py3 fixes