add network_io.py - python implementation