Completed parse.py. Works correctly.