Use built in is leap year function

Modified code to use the isleap() function in the calendar module.