(In Python 3.1) (Somewhat related to another question I asked, but this question is about iterators being exhausted.)
# trying to see the ratio of the max an
The itertools.tee function can help here:
import itertools f1, f2 = itertools.tee(filtered, 2) ratio = max(f1) / min(f2)