Hml bwa

.iteritems() should be .items() for py2/py3 compatibility