Midterm, Problem #1 Solutions

Initial code for the midterm, along with solution to first problem
(parse.py)