Javascript Leap Year Function In Python Definition Range