Real examples and use cases for design patterns in python