Convergence Rate Numpy Python