code: def AddMethod(self, function, name=None):
          
          method = MethodWrapper(self, function, name)
          self.added_methods.append(method)
docs: Adds the specified function as a method of this construction
          environment with the specified name.  If the name is omitted,
          the default name is the name of the function itself.