FYI you can write this in a more readable way as:
```
from itertools import product
product(CG + DG, CG + DG)
```