Python Find Roots Of Function