remove main from parser.py