Fixed Bug in Network.py