> Why do I need an object to represent HTML? It's just text. Why do I need an object to represent an HTML file?

Well, you have a point here...

>I don't want to write Java, that's why I am using python in the first place.

Ja Ja, nice quote...