Fixed PEP-8 formatting recommendations in setup.py and settings.py.

This fixes a series of warnings from the pep8 tool involving line lengths,
excess spaces around operators, and inconsistencies around a regex line
wrapping in setup.py and settings.py.

Reviewed at https://reviews.reviewboard.org/r/6638/