def _get_value_for_key(lines, key):
  """Given list of |lines| with colon separated key value pairs,
  return the value of |key|."""
  for line in lines:
    parts = line.split(':')
    if parts[0].strip() == key:
      return parts[1].strip()
  return None