Made compatibilities for iteritems, itervalues, maxint, __cmp__
Fix and forgotten file to previous commit.
All tests now run successfully on py3k.