Javascript Leap Year Function Python Example