Numerical methods with python