SImplifying Regular Expressions in Python.