Remember the issue with gzip extensions?  splitext('filename.nii.gz') only pulling .gz off?  this may also happen with these timing files...it is a rare corner case, but might be worth adding a check as users will commonly gzip "every" file in a directory