Add flake8 and flake8-import-order to tests

@meshy do we keep the translation here?