work-around for bug in Cython 0.19: set.add(some_tuple) fails in Py2.4