How to sort dictionaries by keys in Python,sorted(d.items())