Update parser.py

fixed it but its messy