ENH: Updated TemplateKey.py to use scripted loadable module base classes