Fixed variable name in polynomials and removed all funcitons with data={} as initial value (this leads to problem as the dicts gets cached) Also added an acceptance of ValueError to give a nicer error message.