download: fix import for Python >= 3.8
since https://github.com/python/cpython/commit/0250de48199552cdaed5a4fe44b3f9cdb5325363 splitport and splituser are deprecated. They can still be found in urllib.parse, use it there until their complete removal.