replace iterator.next() with next(iterator)

According to https://wiki.openstack.org/wiki/Python3 iterator.next()
should be replaced with next(iterator).

Change-Id: I88b1c8096202277ba07775aaa3b03f6773617258
Merge "replace iterator.next() with next(iterator)"