python code from learnpythonthehardway.com