FIXUP: Tidy up use of NamedTemporaryFile

I have to admit to not being a big fan of functools.partial given
Python's built-in support for rich constructs like closures and even
lambda.

Also: there's no reason to reopen ocr_out.