Replace network_gateway.py