Example code for the book Fluent Python