The comparison between parts[1:3] and ('', host) would return false because a list and a tuple were being compared.