a demonstration of socket, written in Python