Comments
Parallel inheritance hierarchy occurs when changes in one class hierarchy necessitate changes in another hierarchy. This usually indicates a strong coupling between the hierarchies.
Code :

Treatment:
Merge related hierarchies by using composition instead of inheritance. python
