def set_api_sub_params(params):
 api_params = dict()
 for param in params.keys():
  param_value = params.get(param, None)
  if param_value:
   api_params[pc(param)] = param_value
 return api_params

def set_api_sub_params ( params ) : api_params = dict ( ) for param in params . keys ( ) : param_value = params . get ( param , None ) if param_value : api_params [ pc ( param ) ] = param_value return api_params
sets module sub-parameters to those expected by the boto3 api .