I stumbled on this pipeline idea reading this page: <a href="https://mtomassoli.wordpress.com/2012/03/29/pipelining-in-python/" rel="nofollow">https://mtomassoli.wordpress.com/2012/03/29/pipelining-in-py...</a>
but the implementation looked quite complicated.<p>The code in this github repo is both simpler and more powerful, since it can handle generator expressions seamlessly.