Improve linux_net.py patch