fix import error with recent versions of pysparse
fix import error with recent versions of pysparse