def encode_data(self, data):
        if data:
            data = urlencode(data)

        return data
Must of the data is sent as part of query params (eeww),
dataset/ETHPy150Open apache/libcloud/libcloud/common/cloudstack.py/CloudStackConnection.encode_data