Update urljoin import to support Python 3

`urlparse` has moved. Python 3 moved it to `urllib.parse`. A try/except
can be used to handle supporting both Python 2 and 3. Fortunately
`urljoin` is still inside this module.