Get value only from mapping and possibly convert key to string.

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

        return kwargs[key]