In place of this:
Comp_Key, x, y, z= dict((A, B, C, [x,y,z]) for A, B, C, x, y, z in result)
You could do this (if A, B, C != B, A, C, i.e. order of A B C matters):
final_result = dict(((A, B, C), [x, y, z]) for A, B, C, x, y, z in result)
OR
final_result = {(A, B, C): [x, y, z] for A, B, C, x, y, z in result} # more readable than first one
Or you could do this (if A, B, C == B, A, C, i.e. order of A B C does not matter):
final_result = dict((frozenset(A, B, C), [x, y, z]) for A, B, C, x, y, z in result)
OR
final_result = {frozenset(A, B, C): [x, y, z] for A, B, C, x, y, z in result} # more readable than first one