python script to alter an ebook