Hello Daniel,
what is your Python setup? I just tried the "iot_starterkit_push_ui.py" script with Python 2.7 and Python 3.4 (urllib version is urllib3-1.12). str() method works as expected.
Did you try to hardcode the message type ID, so that no str() method is used to construct the body?
Regards,
Anton