matches.remove('')
return matches

def mr_parse(params):
    results = {}
for key in params:
    if '[' in key:
        key_list = split(key)
d = results
for partial_key in key_list[:-1]:
    if partial_key not in d:
        d[partial_key] = dict()
Разбор параметров URL, подобных словарю, в Python