def _build_template_params(params_str):
 i = 0
 params = {}
 for item in params_str:
  (param, __, value) = item.partition('=')
  if value:
   params[param] = value
  else:
   i = (i + 1)
   params[str(i)] = param
 return params

def _build_template_params ( params_str ) : i = 0 params = { } for item in params_str : ( param , __ , value ) = item . partition ( '=' ) if value : params [ param ] = value else : i = ( i + 1 ) params [ str ( i ) ] = param return params
builds a dictionary from a given list of raw strings passed in by the user .