Changed to using flake8 instead of pyflakes for python checking