Python glue code for tesseract-ocr.