Revert "Restore iteration for Python 2"

This reverts commit d07f3f1699e37c14f9470fbcab7c23de50d03412.