Replace filter calls with list comprehensions.

This makes sure the result is materialized and
can be sorted and iterated more than once.

Performed with:

    $ 2to3.py -p -ffilter -w .

and then compensated for line endings.
Merge pull request #16 from kimgr/filter

Replace filter calls with list comprehensions.