def ListBasename(filelist):
 return [os.path.basename(f) for f in filelist]

def ListBasename ( filelist ) : return [ os . path . basename ( f ) for f in filelist ]
turns a list of paths into a list of basenames for each entry .