added python version of sockets, echo server taken from python website