def opt_class(self, className):
        """
        Create a Resource subclass with a zero-argument constructor.
        """
        classObj = reflect.namedClass(className)
        self['root'] = classObj()

        Create a Resource subclass with a zero-argument constructor.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/tap.py