Factory Method In Python