def __init__(self, flags):
        self.__flags = flags

        # Perform OAuth 2.0 authorization.
        project_dir = os.path.join(
            os.getenv('HOME'), 'cloud', 'projects', flags.project)
        client_secrets = os.path.join(project_dir, 'client_secrets.json')
        oauth2_storage = os.path.join(project_dir, 'oauth2.dat')
        flow = flow_from_clientsecrets(client_secrets, scope=GCE_SCOPE)
        storage = Storage(oauth2_storage)
        credentials = storage.get()

        if credentials is None or credentials.invalid:
            credentials = run_flow(flow, storage, flags)
        http = httplib2.Http()
        self.__auth_http = credentials.authorize(http)

        # Build the service.
        self.__gce_service = build('compute', API_VERSION)
        self.__project_url = (GCE_URL, flags.project) % '%s%s'
dataset/ETHPy150Open mbrukman/cloud-launcher/src/cloud_launcher.py/GceHandler.__init__/swapped operands of `%`