I am making a HTML parser in python for a framework and I need to know the parent of a element and I am using html.HTMLParser. Any ideas on how to do it?