code: def get_value(self, key, args, kwargs):
          
          if (self.tolerant and
                  not isinstance(key, basestring) and
                  key not in kwargs):
              key = str(key)
  
          return kwargs[key]
docs: Get value only from mapping and possibly convert key to string.