FIX: Fixed iteration in Python 3.x