def __init__(self):
    self.user_model = getattr(settings, 'GAEMA_USER_MODEL', GAEMAUser)
    if isinstance(self.user_model, basestring):
      try:
        self.user_model = import_string(self.user_model)
      except Exception:
        raise ImproperlyConfigured("Failed to import %s" % self.user_model)
    self.valid_services = get_valid_services()
dataset/ETHPy150Open IanLewis/kay/kay/auth/backends/gaema.py/GAEMABackend.__init__/original