Standards-compliant library for parsing and serializing HTML documents and fragments in Python