End Code Function Python Format Datetime For Print