Javascript Leap Year Function Python Syntax For User