Well, maybe it's not worth the change as it isn't even related to your changes, is everywhere, and the anosim code doesn't look very numpythonic in general. It could probably be rewritten in like a quarter of the space, especially now that scipy's functionality to rank the data can be used.