for proxy in proxies:
    opener = urllib.request.build_opener(urllib.request.ProxyHandler({'http': proxy}))
openers.append(opener)
opener = random.choice(openers)
req = urllib.request.Request(url)
res = opener.open(req)
how to use two level proxy setting in Python?