calender output fixed

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