Adjust exceptions to match OpenStack log.py, fix some PEP8 issues in setup.py

...up.py