Add global has_cython flag for safer testing