[python] How to get all possible combinations of a list’s elements?