The .pat files have been made by hand. The parts that will not be interpreted correctly are marked in a comment
The .py files have been automatically generated unless the name starts with MANUAL
MANUAL files used the automatically generated files so you can see how to manipulate them.