Changes for calls iteritems and str to six

All iteritems() changed to six.iteritems().
All str() exept headers changed to six.text_type().
It's required for compatibility with Python 3.

Change-Id: I608f78913add87e069f7cfc5eeb6d2636f5d3859
Merge "Changes for calls iteritems and str to six"