start rewrite ocrmypdf in python