Ребята, вы делаете все сложнее ... это очень просто
from pprint import pprint Dict={'B':1,'A':2,'C':3} pprint(Dict)
Выход:
{'A':2,'B':1,'C':3}