Fixed pep8 violations in setup.py
Missing newline at EOF
Weird settings import
Removed unused imports from tests
Removed unusued variable names from database.py