Adding timeout to urlopen