PEP8 core/index
Fixup on tests/test_sparse test