python get sorted list of dictionary keys