You want to see if they contain the same elements, but don't care about the order.
You can use a set:
>>> set(['one', 'two', 'three']) == set(['two', 'one', 'three'])
True
But the set object itself will only contain one instance of each unique value, and will not preserve order.
>>> set(['one', 'one', 'one']) == set(['one'])
True
So, if tracking duplicates/length is important, you probably want to also check the length:
def are_eq(a, b):
return set(a) == set(b) and len(a) == len(b)