Create parsing_pat.py

Parsing the words when the Pat tree is used