making chap7ex2.py pass pylint