Sorting the entries in your documents_query
according to their name and keyword is very straightforward using dictionaries:
indexedValues = {}
for entry in documents_query:
if entry[0] not in indexedValues:
indexedValues[entry[0]] = {}
indexedValues[entry[0]][entry[1]] = entry[2]
This will give you indexedValues
that looks like what you asked for:
{'Aftonbladet': {'play': 0.0, 'free': 0.0}, 'Radiosporten Play': {'play': 0.10769448286014331, 'free': 0.0}