AttributeError: 'list' object has no attribute 'typecode'
Hint: if you paste the error message into google and click "I'm
Feeling Lucky", you'll get an answer to your question.
But thanks for letting me know; I patched polyfit to convert lists to
x = asarray(x)
y = asarray(y)