example/pidof.py same as pidof cli tool mentioned in TODO:

also, put a try/except statement around proc.cmdline() like this:

try:
     cmdline = proc.cmdline()
except psutil.Error:
     continue