Brent Root Finding Python Path