Get iteritems from six. Use PyCapsule instead of the deprecated PyCObject. Use RootUtils::PyGetString.