You should really probably functionalize this with something in `mne/utils.py`, like:
```
_check_fname(fname, ('-epo.fif', '-epo.fif.gz'))
```
It will save some lines, and redundancy.