pep8 cleanup, use fallback in getenv