Some exercises from the book "Learning python the hard way"