Datetime Parse String Python Definition Function