master.py: putting instances into cgroups