Changed iteritems to items for python3.X
Correction missing import for python2.X