Way back last year, we developed the taskstats and delay accounting interface for the Linux Kernel. There is now a CPAN module to extract the same information using perl (all our example programs are in C). It's called Linux::Taskstats::Read. It can read the binary dump of taskstats information and interpret it.
Here's the module
I hope to be able to write a python interface for taskstats as well and do it quickly. I am sure someones already done the work.