code: def config_to_api_list(dic):
    
    config = [ ]
    for k, v in dic.iteritems():
      config.append({ 'name' : k, 'value': v })
    return { ApiList.LIST_KEY : config }
docs: Converts a python dictionary into a list containing the proper
    ApiConfig encoding for configuration data.
  
    @param dic: Key-value pairs to convert.
    @return: JSON dictionary of an ApiConfig list (*not* an ApiList).