- just tags
- dict.sort to sorted
- dict.sort to sorted
- use six.text_type