Minor formatting fix in parser.py

Changed else: if: to elif: to increase legibility