python foray into sockets