Update networks.py

replaced tabs by spaces