add python generic tcp server/client