fix for python 3 dict_items in hscan