def request(self, action, params=None, data='', headers=None, method='GET',
                raw=False):
        if not headers:
            headers = {}
        if not params:
            params = {}

        headers['Accept'] = 'application/json'

        if ['POST', 'PUT'] in method:
            headers['Content-Type'] = 'application/json; charset=UTF-8'
            data = json.dumps(data)

        return super(RackspaceMonitoringConnection, self).request(
            action=action,
            params=params, data=data,
            method=method, headers=headers,
            raw=raw
        )
dataset/ETHPy150Open racker/rackspace-monitoring/rackspace_monitoring/drivers/rackspace.py/RackspaceMonitoringConnection.request/swapped operands of `in`