Filter Using Pipes In Python