Bisection Method Code In Python