Add flake8 jenkins test. Clean up unused code.