def __init__(self, key, secret, email, password, cartodb_domain, **kwargs):
        """
        :param key: XAuth consumer key
        :param secret: XAuth consumer secret
        :param email: User name on CartoDB (yes, no email)
        :param password: User password on CartoDB
        :param cartodb_domain: Subdomain for API requests. It's called "cartodb_domain", but it's just a subdomain and doesn't have to live under cartodb.com
        :param kwargs: Any other params to be sent to the parent class
        :return:
        """
        super(CartoDBOAuth, self).__init__(cartodb_domain, **kwargs)

        # Sadly, we xAuth is not supported by requests or any of its modules, so we need to stick to
        # oauth2 when it comes to getting the access token
        self.consumer_key = key
        self.consumer_secret = secret
        consumer = oauth.Consumer(self.consumer_key, self.consumer_secret)

        client = oauth.Client(consumer, proxy_info=self.proxy_info)
        client.set_signature_method = oauth.SignatureMethod_HMAC_SHA1()

        params = {}
        params["x_auth_username"] = email
        params["x_auth_password"] = password
        params["x_auth_mode"] = 'client_auth'

        # Get Access Token
        access_token_url = {'user': cartodb_domain, 'domain': self.host, 'protocol': self.protocol} % ACCESS_TOKEN_URL
        resp, token = client.request(access_token_url, method="POST", body=urlencode(params))
        if resp['status'] != '200':
            raise CartoDBException("%s: %s" % (resp['status'], token))
        access_token = dict(parse_qsl(token.decode()))

        # Prepare client (now this is requests again!)
        try:
            self.client = OAuth1Session(self.consumer_key, client_secret=self.consumer_secret, resource_owner_key=access_token['oauth_token'],
                                        resource_owner_secret=access_token['oauth_token_secret'])
        except KeyError:
            raise CartoDBException('Access denied')
dataset/ETHPy150Open CartoDB/cartodb-python/cartodb/cartodb.py/CartoDBOAuth.__init__/swapped operands of `%`