Support both pyPdf and PyPDF2.

The former seems to have died years ago, and the latter was forked with
the blessing of the original author.

Debian sid updated its python-pdf package a while ago and switched to
the latter, so add some compatibility glue since the API we use is
common to both packages.