use urlparse directly where it is needed

Change-Id: I8468feb763413993109008bfad4a4ecd61687c5b
Reviewed-by: Kai Koehne <kai.koehne@digia.com>