Fixed iterkeys and itervalues for python 3