document next() to make pylint happier
purged unused import.
examples deserve some pylint love too.