Make list output flush so that can be piped.

A very small commit, but made a pull request for #62.