That's just unrolling the nested comprehensions. The part about redundant compilers is that for some reason things ended up repeated so I just use set() to avoid repeating them.