Pythonic framework for combinatorics