Fix for apparent numpy sparse matrix indexing bug on python2.6