Root Finding Function Python Parameters