import yaxl
html = yaxl.Element('html')

html += 'head' += 'style', """sadasd"""
html + 'head'
html/head += 'script'
html.head.script = """
Something cool
"""
html.head.script['a'] = 5

html
<html><head><style>sadasd</style><script a="5">Something cool</script></head></html>


x = yaxl.Element('x', myatt=5, thisatt='another thing')