I am trying to modify basic HTTP server in Python that will response to a heart-beat sent from a device. The message is properly read by GET protocol and looks like: