I try to avoid using part in html5lib -- can we use import here instead?