Use internal flake8 machinery so that flake8 configuration is picked up correctly

Fixes #17.