def METHOD_NAME(self, spec):
    createfunc = pythonapi.PyModule_FromDefAndSpec2
    # c_void_p is standin for PyModuleDef *
    createfunc.argtypes = c_void_p, py_object, c_int
    createfunc.restype = py_object
    module = createfunc(self.module_def, spec, self.api_version)
    return module