Used six for iteritems
Another iteritems instance....
Merge pull request #1338 from bokeh/bugfix/py3-palettes

Bugfix/py3 palettes (closes #1337)