PyLint disabled where appropriate
Rename urlparse to _urlparse
Use `urljoin` from six