Fix network.py flags