Python 3 compat iterator