Right now, the FLOSS function is written as a Python generator. It is probably better to write it as an object