Modified the bookchars python script