Composite Design Pattern Python Program