urlparse object doesn't have 'host' attribute by default