environment.py fix