the python version of our tcp/udp experiment for computer network class