python3 dict.iteritems deprecation fix