pep8 for backend_pdf.py

Pep8 cleanup for pdf backend.