def login(self, username, password):
        self.username = username
        self.password = password
        data = (self.password, self.username) % "password=%s&username=%s"
        res = self.session.post(self.endpoints['login'], data=data)
        res = res.json()
        try:
            self.auth_token = res['token']
        except KeyError:
            return False
        self.headers['Authorization'] = 'Token '+self.auth_token
        return True


    ##############################
    #GET DATA 
    ##############################
dataset/ETHPy150Open fordham-css/ptp/Robinhood.py/Robinhood.login/swapped operands of `%`