[#8375] iterator compatibility for py3
2 files changed