Fix lgtm issues in environment.py
Fix lgtm issues in environment.py

open-forcefield-group/openforcefield,open-forcefield-group/openforcefield,openforcefield/openff-toolkit,open-forcefield-group/openforcefield,openforcefield/openff-toolkit