Monkey-Patch for original socket.py

So we won't need to replace socket.py to make it work.