Polynomial import speedup

Move generation of polynomial classes to build time

* Improve Numpy package import time by moving auto-generation of
  polynomial classes to build time. See Github issue
  https://github.com/numpy/numpy/issues/634 and original pull request
  discussion at https://github.com/numpy/numpy/pull/334