Exclude tests and compat.py from flake8