if isinstance(value, (basestring, dict)):