'Creates a new type.
@param name name of new type as string
@param bases tuple of base classes
@param namespace dictionary with namespace for new type
@return generated type'

def __new__(cls, name, bases, namespace):

    for (methodName, methodArgs) in wrapperMethods:
        namespace[methodName] = messageMethod(methodName, methodArgs)
    return type(name, bases, namespace)
