consolidate env helpers into env.py
consolidate env helpers into env.py