Python 3: Replace iter.next() with six.next(iter)

Use six.next() to be Python 3 compatible.

Change-Id: Ia16148a759d368872787d5896a7b1dc42ffcdfb5
Merge "Python 3: Replace iter.next() with six.next(iter)"