Can't disable buffering on std streams in Python 3.
Explicitly use floor division to please Python 3.
``has_key`` has been deprecated in Python3, use simple ``in`` instead.
Py3k-friendly next.
Replace ``map`` call with a list comprehension to make sure we get a materialized list.
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 #10 from kimgr/unbuffered

Can't disable buffering on std streams in Python 3.

This difference between Python 2 and Python 3 should arguably be reconciled in the future. However, it's not important now.
Merge pull request #12 from kimgr/division

Explicitly use floor division to please Python 3.
Merge pull request #13 from kimgr/has_key

``has_key`` has been deprecated in Python3, use simple ``in`` instead.
Merge pull request #14 from kimgr/next

Py3k-friendly next
Merge pull request #15 from kimgr/materialize_map

Replace ``map`` call with a list comprehension to make sure we get a mat...
Merge pull request #16 from kimgr/filter

Replace filter calls with list comprehensions.