Python threads inside Airflow tasks

Hi,
i wanted to ask if it is at all possible to run python code within a task that starts multiple python threads?

I have written an operator that starts three threads. These ask for an API. The hook that does the API queries has a ratelimit so that the api quota is not exceeded.

Now I get for example this error
Errno 0] Error
[SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2570)

Is this even possible in airflow?

I have found a solution. I just had to give each thread its own instance of the hook. Now it seems to work.