Cleaned up redundant code in setup.py