Update network.py

fixed a problem with the code not traversing the ip route command output one line at a time.