Update networks.py

Corrected indentation.