I used mqtt.simple to send data from TMP36 sensor to CloudMQTT. You can have a free account there. Supported by the tutorial it works as expected now. For some more info have a look to pycom.wordpress.com pls.
My site is in German. The link to the souce in Github is https://github.com/ckuehnel/pycom/blob/master/mqtt.py.