Use six.iteritems() in for loop

Use six.iteritems() in for loop.
Use next() built-in function to return next item.

Partial implements: blueprint py33-support

Change-Id: Idff28608232ad9a41dc63d397d88e363ffde8193
Merge "Use six.iteritems() in for loop"