powerset in python