def _normalize_key(value):
  if getattr(value, "key", None):
    return value.key()
  elif isinstance(value, basestring):
    return datastore.Key(value)
  else:
    return value
Send the response header and log the response code.
dataset/ETHPy150Open livid/v2ex/mapreduce/context.py/_normalize_key--crossover with--dataset/ETHPy150Open kleientertainment/ds_mod_tools/pkg/win32/Python27/Lib/BaseHTTPServer.py/BaseHTTPRequestHandler.send_response