fixed small bug in conviron.py, and made suitable for debugging. still ugly