Python: make setup.py compatible with Python 3 again