Fix flake8 errors

Switch back to non-relative imports, they proved to be confusing
Add support for flake8 in runtests