def opener_for(ca_bundle=None):
 return urllib2.build_opener(VerifyingHTTPSHandler((ca_bundle or find_ca_bundle()))).open

def opener_for ( ca_bundle = None ) : return urllib2 . build_opener ( VerifyingHTTPSHandler ( ( ca_bundle or find_ca_bundle ( ) ) ) ) . open
get a urlopen() replacement that uses ca_bundle for verification .