Context free grammar algorithms implemented in Python.