PEP8 cleanup and typo fix for settings.py