def PrevFchunk(ea):
    func = idaapi.get_prev_fchunk(ea)

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