Python version of Noisy-Or Indian Buffet Process (based on the code by Frank Wood)