def iteritems(d):
 return getattr(d, _iteritems)()

def iteritems ( d ) : return getattr ( d , _iteritems ) ( )
replacement for sixs iteritems for python2/3 compat uses iteritems if available and otherwise uses items .