Javascript Leap Year Function Python Format Datetime For Print