modified parse.py