Optimized implementation in Python of the 23 most popular design patterns