Fix URIReference on Python3