Javascript Leap Year Function Python Format Number With 2