CDOpt: A Python Package for a Class of Riemannian Optimization