Root Finding Function Python Definition