Update networks.py

How do you math?