python: solve potential shared pipe corruption issue with multiple pipes and multiplexing with select
python: alternate soln to shared pipes by using flock to lock writes to pipe