human
Complete the below
def _linesearch_powell(func, p, xi, tol=0.001):

    ''''Line-search algorithm using fminbound.
    Find the minimium of the function ``func(x0+ alpha*direc)``.'
    '''
assistant
#Here is Python code to find the minimium of the function ``func(x0+ alpha*direc)``.
    def myfunc(alpha):
        return func((p + (alpha * xi)))
    (alpha_min, fret, iter, num) = brent(myfunc, full_output=1, tol=tol)
    xi = (alpha_min * xi)
    return (squeeze(fret), (p + xi), xi)