Cython equivalent to khash-sets/maps
