Update example_perfect_pattern.py