code: def _get_lib_name(lib):
      
      # append any extension suffix defined by Python for current platform
      ext_suffix = sysconfig.get_config_var("EXT_SUFFIX")
      # in principle "EXT_SUFFIX" is what we want.
      # "SO" seems to be deprecated on newer python
      # but: older python seems to have empty "EXT_SUFFIX", so we fall back
      if not ext_suffix:
          try:
              ext_suffix = sysconfig.get_config_var("SO")
          except Exception as e:
              msg = ("Empty 'EXT_SUFFIX' encountered while building CDLL "
                     "filename and fallback to 'SO' variable failed "
                     "(%s)." % str(e))
              warnings.warn(msg)
              pass
      if ext_suffix:
          libname = lib + ext_suffix
      return libname
docs: Helper function to get an architecture and Python version specific library
      filename.