Update socket_server.py

fixed i equal to null