Fix script print_usage for python3

AttributeError: 'dict_items' object has no attribute 'sort'