Javascript Leap Year Function In Python Practice