clean up def get_keywords
clean up def get_keywords-pull