def NextFchunk(ea):
    func = idaapi.get_next_fchunk(ea)

    if func:
        return func.startEA
    else:
        return BADADDR
Get next function chunk
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/NextFchunk