Secant Method Algorithm In Python