parameters: (s)
docstring: Small helper version to check an object is a string in a way that works
      for both Python 2 and 3
docstring_summary: Small helper version to check an object is a string in a way that works
      for both Python 2 and 3
docstring_tokens: Small helper version to check an object is a string in a way that works for both Python 2 and 3
function: def isstring(s):
      """Small helper version to check an object is a string in a way that works
      for both Python 2 and 3
      """
      try:
          return isinstance(s, basestring)
      except NameError:
          return isinstance(s, str)
function_tokens: def isstring ( s ) : try : return isinstance ( s , basestring ) except NameError : return isinstance ( s , str )