revised parse.py(before this commit, this script is wrong)