def _init_globals():
 global _FROM_MODEL_MAP, _TO_MODEL_MAP, _SESSION_HANDLER
 if (not _FROM_MODEL_MAP):
  _FROM_MODEL_MAP = defaultdict(str)
  _FROM_MODEL_MAP.update(dict(((c.model, c.natural_key()) for c in ContentType.objects.all())))
 if (not _TO_MODEL_MAP):
  _TO_MODEL_MAP = defaultdict(str)
  _TO_MODEL_MAP.update(dict(((c.natural_key(), c.model_class()) for c in ContentType.objects.all())))
 if (not _SESSION_HANDLER):
  from evennia.server.sessionhandler import SESSION_HANDLER as _SESSION_HANDLER

def _init_globals ( ) : global _FROM_MODEL_MAP , _TO_MODEL_MAP , _SESSION_HANDLER if ( not _FROM_MODEL_MAP ) : _FROM_MODEL_MAP = defaultdict ( str ) _FROM_MODEL_MAP . update ( dict ( ( ( c . model , c . natural_key ( ) ) for c in ContentType . objects . all ( ) ) ) ) if ( not _TO_MODEL_MAP ) : _TO_MODEL_MAP = defaultdict ( str ) _TO_MODEL_MAP . update ( dict ( ( ( c . natural_key ( ) , c . model_class ( ) ) for c in ContentType . objects . all ( ) ) ) ) if ( not _SESSION_HANDLER ) : from evennia . server . sessionhandler import SESSION_HANDLER as _SESSION_HANDLER
lazy importing to avoid circular import issues .