Update factory_pattern.py

change all