Get Chapter 8 scripts all working for Python 3.