Python 2.7 class that maintains only max and min of inserted values
<p>Is there a readily available Python 2.7 class/container/collection that stores only the max and min of inserted values? Example usage:</p>

<pre><code>arr = Class()
arr.append(1)
arr.append(2)
arr.append(3)
print arr.max(), arr.min()
</code></pre>

<p>should return </p>

<pre><code>3 1
</code></pre>