setup.py bug fixes