Playing around with Python and combinatorics. Not for public consumption.