proxy = picker.get() response = requests.get("https://api.example.com/data", proxies="http": proxy, "https": proxy)

What or software environment are you using?