python sort nested dictionary by multiple values