Python 3 support: urlparse is in urlib.parse now