I am trying to write python server that communicates with a Particle Photon micro-controller. The micro-controller should send updates when the status has changed, and also