Python Design Patterns For Flexible Manufacturing