flake8
fix some py3 test issues