code: def _get_available_encodings():
      
      available_encodings = set(encodings.aliases.aliases.values())
      paths = [os.path.dirname(encodings.__file__)]
      for importer, modname, ispkg in pkgutil.walk_packages(path=paths):
          available_encodings.add(modname)
      available_encodings = list(available_encodings)
      available_encodings.sort()
      return available_encodings
docs: Get a list of the available encodings to make it easy to
      tab-complete the command line interface.
  
      Inspiration from http://stackoverflow.com/a/3824405/564709