new_contents: from bs4 import BeautifulSoup
  import urllib
  import re
  import requests
  from urlparse import *
  
  def favicon(url, resp):
  	status = 'U'
  	mod = 'favicon'
  	string =""
  	parse = urlparse(url)
  
  	try:
  		current_page = BeautifulSoup(resp.text,'lxml')
  		if parse.netloc.find("www.") != -1:
  			string = parse.netloc.replace("www.","")
  			print "check : %s" %string
  		else:
  			string = parse.netloc
  		for rel in current_page.find_all('link'):
  			if rel.get('href').find("favicon") != -1:
  				if rel.get('href').find("http") != -1:
  					print rel.get('href')
  					print "if"
  					#answer = get_root_domain(rel.get('href'))
  					print rel.get('href')
  					answer = urlparse(rel.get('href')).netloc
  					print answer,string
  					if(answer != string):
  						status = "P"
  						if(answer == ""):
  							if urlparse(rel.get('href')).path.find("favicon.ico") != -1:
  								status = "S"
  								break
  					if(answer == string):
  						status = "S"
  						break
  				else:
  					print "else"
  					print rel.get('href')
  					path = rel.get('href').split("/")
  					for i in path:
  						if bool(re.match('favicon(_)?(\d*).ico',i)):
  							print i
  							status = "S"
  							break
  					
  	except requests.ConnectionError, e:
  		status = "U"
  	except requests.exceptions.Timeout:
  		status = "U"
  
  	return status, mod
  
subject: add Favicon