'Build the url opener for managing HTTP Basic Authentication'

def __build_url_opener(self, uri):

    auth_handler = urllib2.HTTPBasicAuthHandler()
    auth_handler.add_password(None, uri, self.client_id, self.client_secret)
    opener = urllib2.build_opener(auth_handler)
    return opener
