Install flake8, fix stylistic issues