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

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