python iterate over dictionary sorted by key