code: def add(self, varname, result, pointer=None):
          
          self.result[varname] = result
          setattr(self, varname, result)
          if pointer is not None:
              self._finalizers[varname] = pointer
docs: Adds the specified python-typed result and an optional Ftype pointer
          to use when cleaning up this object.
  
          :arg result: a python-typed representation of the result.
          :arg pointer: an instance of Ftype with pointer information for deallocating
            the c-pointer.