Python 'ibf router' implementation