def METHOD_NAME(self, module):
    execfunc = pythonapi.PyModule_ExecDef
    # c_void_p is standin for PyModuleDef *
    execfunc.argtypes = py_object, c_void_p
    execfunc.restype = c_int
    result = execfunc(module, self.module_def)
    if result<0:
       raise ImportError()