query_set to queryset normalization
replace SortedDict with OrderedDict
PEP 3155: skip qualname in Python3