Use cython def instead of cpdef in extension