Code for the Python tutorial
