fix format for flake8, tests fail

* current setup of tests is impossible to satisfy with new type checks