Update networks.py