How can I strip the file extension from a list full of filenames?,lst = [os.path.splitext(x)[0] for x in accounts]