Python library for extracting structure from an html / xml page