foo = [x for x in bar if x.occupants > 1]
After googling and searching on here, couldn\'t figure out what this does. Maybe I wasn\'t searching
This return a list which contains all the elements in bar which have occupants > 1.