Transfer data with MQTT and python

Try this as a starter / reference: