calendar output fix

fixed a bug in the html output of the calender.pt and calender.py template