fix import error with recent versions of pysparse