def AddStrucEx(index, name, is_union):
    if index == -1:
        index = BADADDR

    return idaapi.add_struc(index, name, is_union)
Define a new structure type
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/AddStrucEx