python get dictionary values sorted by key