Use six.iteritems for compatibility with python 3

Fix #12
Merge pull request #78 from migueldvb/six

Use six.iteritems for compatibility with python 3