Numerical Method Bisection Method Python