Minor changes to networks.py