odf2xliff: Simplify code by dropping contextmanager
odf2xliff: Minor cleanups