def __init__(self, function): self.target = function self.helptext = function.__doc__ FactParser.installFunction(function.__name__, self)