Code from the Python tutorial in the supplement.
