Use fake class for min and max in order for pickle to work