Updated calc_grades.py to handle late penalties.