making iter py3 compatible