Function: Combinations

Generating all combinations of a list in Python