Changed to scipy fmin_cg.