[BAHIR-24] fix MQTT Python code, examples, add tests