Update parser.py

switch for