added parser.py (based on xmlparser.py)