Javascript Leap Year Function Python Practice