Update demo in base.py to not use patterns with fan-in.