def __new__(metacls, name, bases, dict):
    cls = ctypes.c_int.__new__(metacls, name, bases, dict)
    for (key, value) in list(cls.__dict__.items()):
        if (key.startswith('_') and key.endswith('_')):
            continue
        setattr(cls, key, cls(key, value))
    return cls
def __new__(metacls, name, bases, dict):
    cls = ctypes.c_int.__new__(metacls, name, bases, dict)
    for (key, value) in list(cls.__dict__.items()):
        if (key.startswith('_') and key.endswith('_')):
            continue
        setattr(cls, key, cls(key, value))
    return cls