cython: add __dealloc__ method to Cs class to free memory when destroying its object. this fixes a memleak bug