<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def normalize_query(query_string, findterms=re.compile(r'"([^"]+)"|(\S+)').findall, normspace=re.compile(r'\s{2,}').sub):
 """ Split the query string into individual keywords, discarding spaces and grouping quoted words together. ['some', 'random', 'words', 'with quotes', 'and', 'spaces'] """


    return [normspace(' ', (t[0] or t[1]).strip()) for t in findterms(query_string)]