working list intersection in cython