結果 : what is a factory pattern in python