start = time.time()
file = open('python.txt', 'r', encoding="ISO-8859-1")
urls = file.readlines()
p = Pool(processes=1)
try:
result = p.map(checkurl, urls)
p.close()
p.join()
print("done in : ", time.time() - start)
except KeyboardInterrupt:
print('ctrl+c on!')
p.terminate()
p.join()