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