Fixed iteration to work in Python 2.x and Python 3.x
Merge pull request #1 from svisser/patch-1

Fixed iteration to work in Python 2.x and Python 3.x