exercises from http://learnpythonthehardway.org/book/