'Returns (token id, token data) for supplied credentials.'

def get_token(self, user, password, tenant, auth_data=False):

    body = self.auth(user, password, tenant)
    if auth_data:
        return (body['token']['id'], body)
    else:
        return body['token']['id']
