add cython wrapper for CompartmentSpace