def SegStart(ea):
    seg = idaapi.getseg(ea)

    if not seg:
        return BADADDR
    else:
        return seg.startEA
Get start address of a segment
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/SegStart