Update network.py

too much mixed programming (matlab/octave/python) ended up in wrong index base ... damned ... fixed