code: def normalize_ext_rename(filepath):
      
      logger.debug('normalize_ext.filepath=' + str(filepath))
      new_file_path = normalize_ext(filepath)
      logger.debug('download_unzip.new_filepaths=' + str(new_file_path))
      # FIXME: fails when name is a url filename
      filepath = rename_file(filepath, new_file_path)
      logger.debug('download_unzip.filepath=' + str(filepath))
      return filepath
docs: normalize file ext like '.tgz' -> '.tar.gz' and '300d.txt' -> '300d.glove.txt' and rename the file
  
      >>> pth = os.path.join(DATA_PATH, 'sms_slang_dict.txt')
      >>> pth == normalize_ext_rename(pth)
      True