@staticmethod
    def subclasses():

        return [
            cls
            for cls in models.loading.get_models()
            if issubclass(cls, Location) and (cls is not Location)
        ]
Verify that python is uninstalled
dataset/ETHPy150Open rapidsms/rapidsms/rapidsms/contrib/locations/models.py/Location.subclasses--crossover with--dataset/ETHPy150Open saltstack/salt/salt/states/pyenv.py/_check_and_uninstall_python