code: def strip_xext(filepath):
      
      ext_size = len(file_xext(filepath).split('.')) - 1
      for i in xrange(0, ext_size):
          filepath = os.path.splitext(filepath)[0]
      return filepath
docs: Strips the compression extension from the filename
      :param filepath: Path to compressed file.
      :return str filepath: Path to the file with the compression extension stripped off.