def ChooseFunction(title):
    f = idaapi.choose_func(title, idaapi.BADADDR)
    return BADADDR if f is None else f.startEA
Ask the user to select a function
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/ChooseFunction