old_contents: #!/usr/bin/python3
  from fastsnmp import snmp_poller
  
  hosts = ("127.0.0.1",)
  # oid group must be with same indexes
  oid_group = {"1.3.6.1.2.1.2.2.1.2": "ifDescr",
               "1.3.6.1.2.1.2.2.1.10": "ifInOctets",
               }
  
  community = "public"
  snmp_data = snmp_poller.poller(hosts, (oid_group.keys(),), community)
  for d in snmp_data:
      print ("host=%s oid=%s.%s value=%s" % (d[0], oid_group[d[1]], d[2], d[3]))
  
new_contents: #!/usr/bin/python3
  from fastsnmp import snmp_poller
  
  hosts = ("127.0.0.1",)
  # oid group must be with same indexes
  oid_group = {"1.3.6.1.2.1.2.2.1.2": "ifDescr",
               "1.3.6.1.2.1.2.2.1.10": "ifInOctets",
               }
  
  community = "public"
  snmp_data = snmp_poller.poller(hosts, (list(oid_group.keys()),), community)
  for d in snmp_data:
      print ("host=%s oid=%s.%s value=%s" % (d[0], oid_group[d[1]], d[2], d[3]))
  
subject: fix dict_keys