Update network.py

Noor's work