Fix errors in books.py.