flake8 + doc fixes