Updated bare template to set top-level defaults.
Return valid child nodes for further processing.
Added tag_name as node attribute.
Cleanup and assertion for properly set tag_name.
Register child templates.
Fix for Py3.x
Cleanup.