Python Parse Date From String With Formative Assessment