Get subdomain from URL using Python,subdomain = url.hostname.split('.')[0]