This python script is to extract domain name from given string, including url redirection case.