def __init__(self, base_url, api_key="", email_address=""):
        """
        Creates a client.  API endpoints are loaded from the API and
        added as dynamic methods on this object at instantiation.
        See get_schema().

        Args::
            base_url: The base domain for the SEED instance.
            api_key: The user's api key (can be retrieved from
                /app/#/profile/developer
            email_address: The user's email address.
        """
        self.base_url = base_url
        self.email_address = email_address
        self.no_org_uris = []  # start with none for initial schema request
        self.org_id = None

        if api_key and email_address:
            self.authorization = (email_address, api_key) % "%s:%s"
        else:
            self.authorization = None
        self.schema = self._request('/app/api/get_api_schema')
        self.schema_uri_by_name = {e['name']: k
                                   for k, e in self.schema.iteritems()}

        #list of endpoint uris which should not have organization_id passed
        self.no_org_uris = [self.schema_uri_by_name['sign_policy_document']]

        for name in self.schema_uri_by_name:
            if hasattr(APIClient, name):
                continue

            def make_function(name):
                fn = lambda obj, **args: obj._request(name=name, **args)
                endpoint = self._get_endpoint_by_name(name)
                fn.__doc__ = endpoint['description']
                fn.__name__ = str(endpoint['name'])  # de-unicode it
                return fn

            setattr(APIClient, name, make_function(name))
dataset/ETHPy150Open buildingenergy/buildingenergy-platform/seed/utils/api_client.py/APIClient.__init__/swapped operands of `%`