Made app PEP8 compliant. Fixed warnings from flake8.