Remove unused CAPI numpy import and extend cython directives