finished binding python interface to pdfviewer