working through examples in the violent python book