Update network.py