Add support for URI in Python 3.