Clean up Python tutorial examples.