Update net_gain.py