Don't use iteritems directly, it's gone in py3

This installs the compatibility library six and uses iteritems from that instead.