Update networkanalysis.py