Update network.py

Needs to be implemented