Remove unsed imports
Enable flake8 checks