Fix crash for "qpdf" generated file and misc. PEP8 fixes
Add error handling in pdf2john