setDayPeriod() added to bstrap.py