A port of Python's psutil to C