def kobject_to_enum(kobj):
    if (kobj.startswith('k_') or kobj.startswith('z_')):
        name = kobj[2:]
    else:
        name = kobj
    return ('K_OBJ_%s' % name.upper())
def kobject_to_enum(kobj):
    if (kobj.startswith('k_') or kobj.startswith('z_')):
        name = kobj[2:]
    else:
        name = kobj
    return ('K_OBJ_%s' % name.upper())