recognize numpy.ufunc type