old_contents: import json
  import requests
  def get_alias(phone, shortname):
      return shortname
  
  def get_status(wit_json, phone):
      wit_json = json.loads(wit_json)
      entities = wit_json["outcomes"]["entities"]
      server = entities["server"][0]["value"]
      status_entity = entities["status_item"][0]["value"]
      server = get_alias(phone, server)
      resp = requests.get("http://%s:5000/%s/" % (server, status_entity)).json()
      return resp["format_string"] % resp["value"]
  
new_contents: import json
  import requests
  def get_alias(phone, shortname):
      return shortname
  
  def get_status(wit_json, phone):
      wit_json = json.loads(wit_json)
      entities = wit_json["outcomes"][0]["entities"]
      server = entities["server"][0]["value"]
      status_entity = entities["status_item"][0]["value"]
      server = get_alias(phone, server)
      resp = requests.get("http://%s:5000/%s/" % (server, status_entity)).json()
      return resp["format_string"] % resp["value"]
  
subject: fix outcomes