Javascript Leap Year Function Python Format Float 2