[Bug 1123047] pdfcompare broken since Python 2 -> Python 3 conversion