Add a flake8 configuration to setup.cfg.
PEP8 fixes in the api app.