fixed strip() call to remove gzip extension from filename.  Replaced with check for .gz ending and simple string slice.