traversing kwargs to filter method while get_tokens