automate PDF to HTML Python Tag