ENH: Expanding functionality for mixed source spaces and source estimates

why not use `if fname.endswith(('.nii', '.nii.gz')):` ?