Message and date parser in Python.