Port setup.py to Python3