code: def is_string(obj):
      
      if PYTHON3:
          str_type = (bytes, str)
      else:
          str_type = (bytes, str, unicode)
      return isinstance(obj, str_type)
docs: Is this a string.
  
      :param object obj:
      :rtype: bool