Fix notics and flake8