It is possible to set time out on Python requests by using timeout parameter
# set 10 seconds timeout with requests.get('https://www.google.com', verify=False, timeout=10) as r: # todo