I guess the attribute error is caused by `.itervalues()` in pyhon3, instead look use of [six.itervalues()](http://pythonhosted.org/six/#six.itervalues)

Never commit commented code, we always can look at commit history for changes. Also left a comment if really important. in this case using `six` is self explanatory.