code: def compat_string(value):
          
          if isinstance(value, bytes):
              return value.decode(encoding='utf-8')
          return str(value)
docs: Provide a python2/3 compatible string representation of the value
          :type value:
          :rtype :