Does `sorted` take the `keys` type that is returned in python3 or do you need to wrap `keys()` in a call to `list()` first?