Javascript Leap Year Function Python Format String Integer Value