scikit-learn doesn't support Python 2.5, so just `next()` should work fine.