Javascript Leap Year Function Python Syntax For If Else If Statement