Update and rename validator.py to parser.py