Refs #38, fixes urllib/urllib2/urlparse renamings in PY3