def snmp_extract(snmp_data):
 if (len(snmp_data) > 1):
  raise ValueError('snmp_extract only allows a single element')
 if (len(snmp_data) == 0):
  return None
 else:
  return snmp_data[0][1].prettyPrint()

def snmp_extract ( snmp_data ) : if ( len ( snmp_data ) > 1 ) : raise ValueError ( 'snmp_extract only allows a single element' ) if ( len ( snmp_data ) == 0 ) : return None else : return snmp_data [ 0 ] [ 1 ] . prettyPrint ( )
unwrap the snmp response data and return in a readable format assumes only a single list element is returned .