Root Finding Methods In Python