Fix build error with Python 3 caused by itervalues() in setup.py