Example python sockets code and update sockets concepts