Convert PDF to LaTeX in Python