Python Interprocess Communication Using Pipes