Python: ch17.py