sort dictionary by two keys python