def IsUnion(sid):
    s = idaapi.get_struc(sid)
    if not s:
        return 0

    return s.is_union()
Overwrite tornado.web.RequestHandler on_finish.
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/IsUnion--crossover with--dataset/ETHPy150Open MitchellChu/torndsession/torndsession/sessionhandler.py/SessionBaseHandler.on_finish