fixed small bug with calculation of sleep length in conviron.py.
still ugly