Pipes and Filters implemented in Python