update network.py