I have 3 functions from which I need to get the values to use them in the main() function. Functions are executed in turn and it takes a lot of time. How can I execute the first three functions at the same time and get values from them?
def session_ID():
    ...
    driver.get('url')
    sessionID = driver.execute_script('return ...')
    return sessionID
def reCaptcha():
    ...
    recaptcha = requests.get('url')
    return recaptcha
def hCaptcha():
    ...
    hcaptcha = requests.get('url')
    return hcaptcha
def main():
    sessionID = session_ID()
    recaptcha = reCaptcha()
    hcaptcha = hCaptcha()
    print(sessionID, recaptcha, hcaptcha)
 
    