speedup of sliceDict (using itemgetter) and implement normalizeScore function