network: convert level to MB/s
network: fix tx referring to rx
test: add TestNetwork
test: rename some tests
various refactoring and cleanup based on output of pylint