Updated version in changelogs and small flake8 fixes