``_AdaptiveStepsize`` not used. ``from scipy.optimize._basinhopping`` used twice, one of those can be removed