def __expandparamstodict(self, params, kw):
        self_parameters = self.parameters
        parametervalues = dict(zip((p['name'] for p in self_parameters),
                                    params))
        for kw, kwval in kw.items():
            if kw in parametervalues:
                raise KeyError(kw % "Multiple definitions of parameter %r")
            parametervalues[kw] = kwval
        for param_to_convert in self_parameters:
            if param_to_convert['name'] in parametervalues:
                val = parametervalues[param_to_convert['name']]
                if val is None:
                    parametervalues[param_to_convert['name']] = ''
                elif not isinstance(val, param_to_convert['datatype']):
                    conversion = param_to_convert['datatype'](val)
                    parametervalues[param_to_convert['name']] = \
                        getattr(conversion, '_json_struct', conversion)
            elif param_to_convert['parameterType'] != 'esriGPParameterTypeDerived':
                parametervalues[param_to_convert['name']] = ''
        return parametervalues
dataset/ETHPy150Open jasonbot/arcrest/arcrest/server.py/GPTask.__expandparamstodict/swapped operands of `%`