py-container and py-factory