Add parse_file function to simple.py.