Cartesian products in Python – badass data science