Correct issue with SNMP fallback mode in Python 3