cgroup: add some functions in cgroup_utils.py

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>