Is there a way I can use glob on a directory, to get files with a specific extension, but only the filename itself, not the whole path?
This might help someone:
names = [os.path.basename(x) for x in glob.glob('/your_path')]