AM: maxit is used for scipy optimizer too