code: def remove_quotes(self, value):
          
          # beware the empty string
          if not value:
              return value
  
          if value[0] == value[-1] == '"':
              return value[1:-1].replace('\\"', '"')
          if value[0] == value[-1] == "'":
              return value[1:-1].replace("\\'", "'")
          return value
docs: Remove any surrounding quotes from a value and unescape any contained
          quotes of that type.