replace queues with pipes

for speed:
http://stackoverflow.com/questions/8463008/python-multiprocessing-pipe-vs-queue