Create patternmatch.py