update networks.py