Rewritten grammar.py as parse.py