fifo.py adapted to also receiving episode information