Make the Python sample more like the others.