Favoring dict.items() for py3 compatibility