Make sure JUJU_ENV is returned for defaults
Linting rules
flake8 fixes