setup.py config refactor