Ebook Heuristic Fixer in Python