<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def register_scope(self, name: str, scope_class: Type[Scope]) -> None: """ Register new scopes which should be subclass of `Scope` :param name: Name of new scopes :param scope_class: Class of new scopes """

        with self._lock:
            if name in self.scopes:
                raise AlreadyConfigured(f'Scope {name} already registered')
            self.scopes[name] = scope_class()