fixed the Python 3 Iterator

I did not see the comment for this line; this change is essential for the new iterator protocol in Python 3.