Python examples of design patterns (singleton, factory, observer and more), OOP, threading, statistics and core language features.