Update network.py

Added usage example.