porting setup.py to python3