cleaing up the parser.py file