Examples fixes and flake8 fixes.