Update networks_from_text.py

Reversing a change made after code for article was committed