def _get_suggested_filename(path):
 filename = os.path.basename(path)
 filename = re.sub('\\([0-9]+\\)$', '', filename)
 filename = urllib.parse.unquote(filename)
 filename = os.path.basename(filename)
 return filename

def _get_suggested_filename ( path ) : filename = os . path . basename ( path ) filename = re . sub ( '\\([0-9]+\\)$' , '' , filename ) filename = urllib . parse . unquote ( filename ) filename = os . path . basename ( filename ) return filename
convert a path we got from chromium to a suggested filename .