Python: Test membership of multiple values in an array source: http://stackoverflow.com/a/6159329
all(x in ['b', 'a', 'foo', 'bar'] for x in ['a', 'b']) # >>> True