def dispose(event):
 for (_, value) in DEVICES.items():
  value.netio.stop()

def dispose ( event ) : for ( _ , value ) in DEVICES . items ( ) : value . netio . stop ( )
close connections to netio devices .