Javascript Leap Year Function Python Syntax For If Else In Python