Compartments in python generated