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