It used to be easy to build an HTML instance. In python 2:
import html
obj = html.HTML('html')
But in python3, there is no attribute as "HTML" under "html" module. And I am working on an specific environment and not allowed to install packages there. I wonder if there is anyway to build an HTML object in python3 so that I can use "obj.head","obj.div","obj.p" and other functions. Thanks.