def unqote(text):
 if ((text.startswith('"') and text.endswith('"')) or (text.startswith("'") and text.endswith("'"))):
  text = text[1:(-1)]
 return text

def unqote ( text ) : if ( ( text . startswith ( '"' ) and text . endswith ( '"' ) ) or ( text . startswith ( "'" ) and text . endswith ( "'" ) ) ) : text = text [ 1 : ( - 1 ) ] return text
strip pair of leading and trailing quotes from text .