def _aggr_first(inList):
 for elem in inList:
  if (elem != SENTINEL_VALUE_FOR_MISSING_DATA):
   return elem
 return None

def _aggr_first ( inList ) : for elem in inList : if ( elem != SENTINEL_VALUE_FOR_MISSING_DATA ) : return elem return None
returns first non-none element in the list .