Add flake8 and flake8-import-order to tests

Apparently, yes, even if it is pure evil. Blame @jturnbull