Use correct Python2/3 compatibility iterator.

All Unit Tests run OK with python2 and python3.