The most feature complete MQTT client for Python is paho-mqtt. The Paho Python Client class provides some helper functions to make publishing one off messages to an MQTT server very straightforward. Check out their documentation for further information.
Below you see an sample app which both publish and subscribes to CloudMQTT.
The full code can be seen at https://github.com/CloudMQTT/python-mqtt-example