Python implementation to measure the expected transmission count (ETX) link metric