Solved loop issue, now displays properly the fractal.
Changed newtoniter function to make use of the poly1d class, and added function to transform user input into an array of numbers.
Minor changes to use poly1d class to enter the polynomial.