Preprocess Text Function Python Format Datetime As String