fixed the Python 3 Iterator