Building a toy social network with Python, Part 6: Using the decorator pattern to clean up code