'Make a method object - Assumes in olerepr funcmap'

def _make_method_(self, name):

    methodName = build.MakePublicAttributeName(name)
    methodCodeList = self._olerepr_.MakeFuncMethod(self._olerepr_.mapFuncs[name], methodName, 0)
    methodCode = '\n'.join(methodCodeList)
    try:
        codeObject = compile(methodCode, ('<COMObject    %s>' % self._username_), 'exec')
        tempNameSpace = {}
        globNameSpace = globals().copy()
        globNameSpace['Dispatch'] = win32com.client.Dispatch
        exec codeObject in globNameSpace, tempNameSpace
        name = methodName
        fn = self._builtMethods_[name] = tempNameSpace[name]
        newMeth = MakeMethod(fn, self, self.__class__)
        return newMeth
    except:
        debug_print('Error    building    OLE    definition    for    code    ', methodCode)
        traceback.print_exc()
    return None
