Made network_analysis.py work