Adding support for cgroups

Hi jon,
I want to try out cgroups but I miss the cgroups.py file. Could you please provide an example or give me a hint?