Code from the Python tutorial.
