Simple Python man-in-the-middle server for logging data passed on a port