Python Template and Bridge Design Patterns