small changes in fifo for python adpater