Try using an absolute import here, `from sympy.liealgebras.cartan_type import ...`.