Fixing import in cartan_matrix