ENH: Accelerate tract indexing in the case that scipy is available