simplify iteration over Polynomials by replacing .terms with an __iter__ implementation