Fixing cartan_type.py