Update bookdemo.py

minor alteration