def _lookup_first(dictionary, key):
 value = dictionary[key]
 if (type(value) == list):
  return value[0]
 else:
  return value

def _lookup_first ( dictionary , key ) : value = dictionary [ key ] if ( type ( value ) == list ) : return value [ 0 ] else : return value
lookup the first value given a key .