結果 : what is factory pattern in python