Add support for IRI in Python 3.