def set(self, name, value):
if not self.settings.get('<STR_LIT>', False):<EOL><INDENT>name = name.lower()<EOL><DEDENT>log.info("<STR_LIT>", name, repr(value))<EOL>with self.mut_lock:<EOL><INDENT>self.settings[name] = value<EOL><DEDENT>
Changes a setting value.

            This implements a locking mechanism to ensure some level of thread
            safety.

            :param str name: Setting key name.
            :param value: Setting value.