[python] How to find all occurrences of an element in a list