Wrap quadrule.legendre_compute in a C extension module