Javascript Leap Year Function Python Format Integer With Leading