I managed to get ctypes to work (well...without crashing python that is :-) ) and so now I am able to use this solution from SO
And thanks to FogleBird for the above solution
In the process of tackling this problem I learnt about psutil which I think can benefit those who are looking for system monitoring, profiling and limiting process resources and management of running processes. And it's cross platform...yay!
Cheers, M&M