Exercises from learn python the hard way take 2