Code for violent python book