Javascript Leap Year Function In Python Definition