Fixing bug in Parser.py