Bug Fixed: Shell command "threads" wasn't working in Python 3

keys() returns a dist_keys in Python3, which doesn't support the sort()
method.