MAINT: use a new cython function