Cleaned legacy parser.py.