updated tutorial.py for a revised hash iterator