made changes to astro/cal.py