fix: python 3 compat HTMLParser, iterator, import

fix compatibility with python 3:
- HTMLParser: now in html.parser module
- iterator: depleted after it is iterated. caused issues
with variables which were suppoed to be lists
- import : importing from relative directory include
explicit from . import x instead of import x