Changed iteritems to items for python3.X