you have an mne.fiff.read_info that does this already