python: how to sort a dictionary by key,"sorted(iter(result.items()), key=lambda key_value: key_value[0])"