autopep8 --ignore=E501,E703 fixes.

The code in this chapter was already fixed so the
improvement is debatable.