pep8 for backend_pdf.py
remove backend_pdf from pep8 test exclude list
minor code standard changes
minor code formatting
Merge pull request #2459 from megies/pep8_backend_pdf

pep8 for backend_pdf.py