Initial import (plain copy of network.py) so it would not work