If you don't want to introduce additional list to the filter result, Use next() to get the object in the filter
fileList = next(filter(lambda x: '.mhd' in x, fileList))
This would return the next object in iter or None/[] based on the type of fileList.