Numerical Analysis Python