Raspberry Pi code for of a daemon that log Rest API answers