Update network.py

fix lint