Uplink and downlink messages using the Paho MQTT Python client library