Fix final formatting issues

Some weird indentation in pipecomponents, and remove a trailing slash
in the flake8 call in the travis config
Re-write run_tests, add flake8 to test suite