Update newsocket.py