Good Execute Function Python Format Datetime