import json


def create_control_message(reg_id, msg_type, msg_id):
    """
    Creates a JSON message body for an ack/nack/control message
    """
    message = json.dumps({'to': reg_id,
                          'message_type': msg_type,
                          'message_id': msg_id})
    # print "Control Message created::", message
    return message