Fix missing pattern.py in example