code: def nice_pkg_name(name):
      
      logger.debug("%s", name)
  
      root, ext = os.path.splitext(name)
      logger.debug("root :'%s', ext: '%s'", root, ext)
  
      if ext in ugly_ext:
          logger.debug("remove ext %s to get %s", ext, root)
          return root
  
      logger.debug("no change %s", name)
      return name
docs: todo: Docstring for nice_pkg_name
  
      :param name: arg description
      :type name: type description
      :return:
      :rtype: