I\'ve tested multiple root finding algorithms, of which Illinois algorithm performed best in my use case. The algorithm is working fine in python 3 but doesn\'t work in pyth