def stations_highest_rel_level(stations, N):
    'Returns a list of N MonitoringStation objects ordered from highest to lowest risk'
    stations = consistant_typical_range_stations(stations)

    def key(x):
        if (x.relative_water_level() is not None):
            return x.relative_water_level()
        else:
            return float(0)
    stationByHighestLevel = sorted(stations, key=key, reverse=True)
    NstationByLevel = stationByHighestLevel[:N]
    return NstationByLevel
Returns a list of N MonitoringStation objects ordered from highest to lowest risk
def stations_highest_rel_level(stations, N):
    
    stations = consistant_typical_range_stations(stations)

    def key(x):
        if (x.relative_water_level() is not None):
            return x.relative_water_level()
        else:
            return float(0)
    stationByHighestLevel = sorted(stations, key=key, reverse=True)
    NstationByLevel = stationByHighestLevel[:N]
    return NstationByLevel