Updated .travis.yml to stop using pyflakes and pep8.

Instead it now uses flake8, which is a wrapper around the two. We
also check for the McCabe complexity that is set to 12.