def get_token(self):
        """sets client token from Cerberus"""
        auth_resp = self.get_auth()

        if auth_resp['status'] == 'mfa_req':
            token_resp = self.get_mfa(auth_resp)
        else:
            token_resp = auth_resp

        token = token_resp['data']['client_token']['client_token']
        return token
def get_token ( self ) : auth_resp = self . get_auth ( ) if auth_resp [ 'status' ] == 'mfa_req' : token_resp = self . get_mfa ( auth_resp ) else : token_resp = auth_resp token = token_resp [ 'data' ] [ 'client_token' ] [ 'client_token' ] return token
sets client token from Cerberus