Second maximum of a list with functional Python

Returns the second maximum of a list of numbers


References: