cgroup: Add/Modify some functions in utils_cgroup.py

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