Numerical Method Using Python Help