Allow import * in testsettings.
Add flake8 settings to setup.cfg.