update to match python standards
TextToBook/TextToBook.py

* update code to match PEP8 and other Python standards